package com.fhs.test.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "school",autoResultMap = true)
public class School  {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("school_name")
    private String schoolName;

    @TableField("remark")
    private String schoolRemark;

    @TableField("address")
    private String address;

    private String code;

    //已知的问题，如果student配置了和school的关系这里不要配置和student的关系，不然会死循环，已经排期修改
   /* @TableField(relation = Relation.ONE_TO_MANY,target = Student.class)
    List<Student> studentList;*/
}
